@import '../style/mixins/hairline.less';

.am-modal-show {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.am-modal-hide {
  display: none;
}
.am-modal-mask,
.am-modal-document {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.am-modal-mask {
  background-color: rgba(0, 0, 0, 0.75);
}
.am-modal-document {
  display: flex;
  align-items: center;
  justify-content: center;
}
.am-modal {
  background-color: #fff;
  border-radius: 2px;
  width: 270px;
  position: relative;
}
.am-modal-image {
  display: flex;
  justify-content: center;
}
.am-modal-image-md,
.am-modal-image-sm {
  margin-top: 24px;
}
.am-modal-image-lg image {
  width: 270px;
  height: 156px;
}
.am-modal-image-md image {
  width: 134px;
  height: 134px;
}
.am-modal-image-sm image {
  width: 65px;
  height: 65px;
}
.am-modal-header {
  font-size: 18px;
  line-height: 21px;
  text-align: center;
  color: #333;
  font-weight: 600;
  padding-top: 22px;
}
.am-modal-body {
  margin-top: 8px;
  overflow: hidden;
  max-width: 270px;
  padding: 0 16px;
  line-height: 20px;
  text-align: center;
  color: #333;
  font-size: 14px;
}

.am-modal-footer {
  margin-top: 12px;
  height: 50px;
  line-height: 50px;
  position: relative;
  font-size: 18px;
  color: #108ee9;
  text-align: center;
  .hairline('top', #ddd);
}
.am-modal-close {
  position: absolute;
  display: block;
  right: 0;
  top: 0;
  height: 48px;
  width: 48px;
  background: url("") center no-repeat;
  background-size: 16px 16px;
}

.am-modal-close-white {
  background: url("https://gw.alipayobjects.com/zos/rmsportal/fdmdsySxNBrpcVBVGEUM.png") center no-repeat;
  background-size: 16px 16px;
}

.am-modal-close-active,
.am-modal-footer-active {
  background-color: rgba(37, 39, 40, .05);
}

.am-modal-document-advice .am-modal {
  padding-top: 0;
  width: auto;
}
.am-modal-document-advice .am-modal-body {
  padding: 0;
  max-width: 319px;
}

.am-modal-document-advice .am-modal-close {
  top: -50px;
  height: 27px;
  width: 27px;
  background-size: 27px 27px;
  background-image: url("");
}
